

            function addArduinoCod (Blockly) {
            
                        

                        
        Blockly.Arduino['EXT_LM35_SENSOR_BLOCK_1608014208490'] = function(block)
        {
            let pin = this.getFieldValue('pin');
          
            Blockly.Arduino.definitions_['include_EXT_LM35_SENSOR_BLOCK_1608014208490'] = ``;
            Blockly.Arduino.definitions_['define_EXT_LM35_SENSOR_BLOCK_1608014208490'] = `int Temp_Pin${pin} = ${pin};\r\nint val,lm35Data;\r\nfloat voltage = 0.0;\r\n\r\n\r\nfloat Readlm35() {\r\nval = analogRead(Temp_Pin${pin});\r\n voltage = ((float)val/1023);\r\n voltage = voltage * 5;\r\n lm35Data = voltage * 100;\r\nreturn lm35Data;\r\n}`;
            Blockly.Arduino.definitions_['setup_EXT_LM35_SENSOR_BLOCK_1608014208490'] = ``;
             return  [`Readlm35()`];
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        